﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yun.Interface;
using Yun.Response;
using Yun.Util;

namespace Yun.Marketing.Request
{
    /// <summary>
    /// 删除专题参与的商品
    /// yun.goods.apply.subject.remove
    /// </summary>
    public class ApplySubjectRemoveRequest : ITopRequest<BoolResultResponse>
    {
        public string GetApiName()
        {
            return "yun.goods.apply.subject.remove";
        }
        /// <summary>
        /// 专题ID
        /// </summary>
        public long SubjectId { get; set; }

        /// <summary>
        /// 商品ID，多个用英文逗号分隔
        /// </summary>
        public string GoodsIds { get; set; }

        public void Validate()
        {
            RequestValidator.ValidateRequired("subjectid", SubjectId);
            RequestValidator.ValidateRequired("goodsids", GoodsIds);
        }
        public IDictionary<string, string> GetParameters()
        {
            var parameters = new YunDictionary
            {
                {"subjectid", SubjectId},
                {"goodsids", GoodsIds}
            };
            return parameters;
        }
    }
}
